# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=perl-task-weaken
pkgver=1.06
pkgrel=6
pkgdesc="Ensure that a platform has weaken support"
arch=('any')
license=('PerlArtistic')
url="https://metacpan.org/release/Task-Weaken"
depends=('perl')
options=('!emptydirs')
source=("https://cpan.metacpan.org/authors/id/E/ET/ETHER/Task-Weaken-$pkgver.tar.gz")
sha512sums=('2cd723a748c1fb3df12b465ad278070330959c611ed125f54770c2d820202592cc6e46f16ee43671e310abfcf86fe7ffa639db7dd605d69d7d13fca793d59808')

build() {
  cd Task-Weaken-$pkgver
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd Task-Weaken-$pkgver
  make test
}

package() {
  cd Task-Weaken-$pkgver
  make DESTDIR="$pkgdir" install
}
